//参数从左至右说明：参数1:菜单id属性值;		参数2:切换区域id属性值;		参数3:切换区域下级元素类型，如果是div则填写div		参数4：菜单区域滑过时的class样式名		参数5：调用事件类型，默认为onmouseover，只支持onclick和onmouseover,此参数可省略
function showTabfun(obj,menuList,showTabList) 
{	
	obj.className = obj.className.replace(/_ed/g,"")+"_ed";
	for(var i=0;i<menuList.length;i++)
	{
		if(obj == menuList[i])
		{
			showTabList[i].style.display = "block";
		}else {
			menuList[i].className = menuList[i].className.replace(/_ed/g,"");
			showTabList[i].style.display = "none";
		}
	}
}
function showTable(menuid,showid,showCon,Event)
{
	if(!Event)Event="onmouseover";
	var menu = document.getElementById(menuid);
	var menuList = menu.getElementsByTagName("li");
	var showTab = document.getElementById(showid);
	var TmpList = showTab.getElementsByTagName(showCon);
	var showTabList = Array();
	var j=0;
	for(var i=0;i<TmpList.length;i++)
	{
		if(TmpList[i].parentNode.id == showid)
		{
			showTabList[j] = TmpList[i];
			j++;
		}
	}
	
	for(i=0;i<menuList.length;i++)
	{
		switch(Event)
		{
			case "onclick":menuList[i].onclick = function(){showTabfun(this,menuList,showTabList)};break;
			case "onmouseover":menuList[i].onmouseover = function(){showTabfun(this,menuList,showTabList)};break;
			default:menuList[i].onmouseover = function(){showTabfun(this,menuList,showTabList)};break;
		}
	}
}
